#include <stdio.h>
#include <stdio.h>
void* my_memmove(void* dest, void* src, size_t count)
{
	void* ret = dest;
	if (dest > src)
	{
		*((char*)dest + count) = *((char*)src + count);
		count--;
	}
	else
	{
		while (count--)
		{
			*(char*)dest = *(char*)src;
			dest=(char*)dest+1;
			src=(char*)src+1;

		}
	}
	return ret;
}
int main()
{
	int arr1[] = { 1,2,3,4,5,6,7,8,9 };
	void* ret=my_memmove(arr1, arr1 + 2, 20);
	for (int i = 0; i < 9; i++)
	{
		printf("%d ", arr1[i]);
	}
}
